<include file="Public/mobile_head"/><include file="./Addons/Shop/View/default/Index/base.html" />
<body class="cate">
<header style="background-color:#{$shop_config.color}">
  <section id="title"><a href="javascript:history.back()"><span class="topback"></span></a>购买评论</section>
</header>
<!--底部导航-->
<include file="./Addons/Shop/View/default/Index/footer.html" />
<!--END 底部导航-->
<!--商品评论统计  -->
<section id="statistics" class="mb10 mt10">
    <div class="w100p ml15" style="line-height:30px;">
        <div>好评({$g_rate}%)～<div style="width:180px;height:20px;background-color:#ccc;"><div style="width:{:round($g_rate*1.8)}px;height:20px;background-color:red;"></div></div></div>
        <div>中评({$m_rate}%)～<div style="width:180px;height:20px;background-color:#ccc;"><div style="width:{:round($m_rate*1.8)}px;height:20px;background-color:red;"></div></div></div>
        <div>差评({$b_rate}%)～<div style="width:180px;height:20px;background-color:#ccc;"><div style="width:{:round($b_rate*1.8)}px;height:20px;background-color:red;"></div></div></div>
    </div>
</section>
<!--END 商品评论统计  -->
<section id="selector">
  <div class="order w100p">
    <ul class="w33">
        <li><a href="{:addons_url('Shop://Index/buyercomment',array('type'=>'good','pid'=>$pid))}" <eq name="type" value="good">class="current"  style="border-bottom-color:#{$shop_config.color}; color:#{$shop_config.color}"</eq>>好评{$total_g_comment}</a></li>
        <li><a href="{:addons_url('Shop://Index/buyercomment',array('type'=>'middle','pid'=>$pid))}" <eq name="type" value="middle">class="current" style="border-bottom-color:#{$shop_config.color}; color:#{$shop_config.color}"</eq>>中评{$total_m_comment}</a></li>
        <li><a href="{:addons_url('Shop://Index/buyercomment',array('type'=>'bad','pid'=>$pid))}" <eq name="type" value="bad">class="current" style="border-bottom-color:#{$shop_config.color}; color:#{$shop_config.color}"</eq>>差评{$total_b_comment}</a></li>
    </ul>
  </div>
</section>
<section id="mycomment" class="mb10 mt10">

  <notempty name="list">
    <volist name ="list" id="vo">
        <div class="m15 f1-4" style="line-height:35px;color:#666;font-size:15px;">
            <p>{$vo.openid}** 评论</p>
            <span>评分：</span>
            <for start="1" end="6">
                <if condition="$i gt $vo['p_grade']">
                    <img style="display:inline;width:20px;" src="{:ADDON_PUBLIC_PATH}/images/star-off.png">
                <else />
                    <img style="display:inline;width:20px;" src="{:ADDON_PUBLIC_PATH}/images/star-on.png">
                </if>
            </for>
            <p style="color:#999;"><span style="float: right;">{:date('Y-m-d h:i:s',$vo['create_date'])}</span>{$vo.openid}**</p>
            <p>看法：{$vo.comment_explain}</p>
        </div>
        <hr style="width:94%;margin-left:3%;border:1px solid #ccc;">
    </volist>
   <else /> 
    <div class="empty_default" >
        <p><img src="__IMG__/m/face_sad.png"/><br/>您没有此类评价～</p><br/><br/>
	    <a class="go_shop" href="{:addons_url('Shop://Index/index')}">返回店铺推荐商品</a>
    </div>
   </notempty>
</section>
<!--底部 版权信息-->
<include file="./Addons/Shop/View/default/Index/footerbq.html" />
<!--END 底部导航-->
</body>
<script src="{:ADDON_PUBLIC_PATH}/js/jquery.js"></script>
<script src="{:ADDON_PUBLIC_PATH}/js/comm.js"></script>
<script src="{:ADDON_PUBLIC_PATH}/js/swiper.js"></script>
</html>